package com.ctshk.rpc.bus.mapper;

import java.util.Set;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.bus.entity.BusProductSeat;

/**
 * <p>
 * 巴士产品座位表 Mapper 接口
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-02-08
 */
public interface BusProductSeatMapper extends BaseMapper<BusProductSeat> {

	/**
	 * 根据产品ID查询座位号列表
	 * @param productId
	 * @return
	 */
	@Select("select seat_number from t_bus_product_seat where product_id = #{productId}")
	Set<String> querySeatListByProduct(Long productId);
}
